/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.lt.cj.config.entities;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.lt.cj.core.Seed;

/*
 * @author luohong
 */
public class ConfigModel extends AbstractModel implements Serializable {

    protected String taskName;                                                  //任务名称
    protected List<Seed> seeds = new ArrayList();                               //采集的种子列表入口
    protected List<String> fitUrlRegs = new ArrayList<String>();                //匹配的要采集的URL链接
    protected int workingThreads;                                               //并发工作线程数
    protected String pageEncoding;                                              //页面编码
    protected List<String> pageReg = new ArrayList<String>();                   //页面的匹配表达式

    public List<String> getFitUrlRegs() {
        return fitUrlRegs;
    }

    public void setFitUrlRegs(List<String> fitUrlRegs) {
        this.fitUrlRegs = fitUrlRegs;
    }

    public String getPageEncoding() {
        return pageEncoding;
    }

    public void setPageEncoding(String pageEncoding) {
        this.pageEncoding = pageEncoding;
    }

    public List<String> getPageReg() {
        return pageReg;
    }

    public void setPageReg(List<String> pageReg) {
        this.pageReg = pageReg;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public int getWorkingThreads() {
        return workingThreads;
    }

    public void setWorkingThreads(int workingThreads) {
        this.workingThreads = workingThreads;
    }

    public List<Seed> getSeeds() {
        return seeds;
    }

    public void setSeeds(List<Seed> seeds) {
        this.seeds = seeds;
    }

    @Override
    public String toString() {
        return "Task name_ " + this.taskName + "  Thread count_ " + this.workingThreads;
    }
}
